﻿<CodeSnippetTabbed DocLink="https://docs.devexpress.com/Blazor/DevExpress.Blazor.DxButton#button-content-and-appearance">
    <CodeSnippetTabPage Text="Razor">
        <CodeSnippetTemplate>
            <CodeSnippet @key="@_codeString">@_codeString</CodeSnippet>
        </CodeSnippetTemplate>
    </CodeSnippetTabPage>
</CodeSnippetTabbed>
@code {
    [Parameter]
    public ButtonRenderStyle RenderStyle { get; set; }

    [Parameter]
    public ButtonRenderStyleMode RenderStyleMode { get; set; }

    [Parameter]
    public SizeMode SizeMode { get; set; }

    [Parameter]
    public string StyleName { get; set; }

    string _codeString;
    protected override void OnParametersSet() {
        _codeString = $"<DxButton RenderStyle=\"ButtonRenderStyle.{RenderStyle}\" RenderStyleMode=\"ButtonRenderStyleMode.{RenderStyleMode}\" Text=\"{StyleName}\" SizeMode=\"SizeMode.{SizeMode}\" />";
    }
}
